package main

import (
	"fmt"
	"reflect"
	"strconv"
)

func main() {
	var num1 int
	fmt.Scan(&num1)
	str1 := strconv.Itoa(num1)
	x := 0
	y := 0
	for i := len(str1) - 1; i >= 0; i-- {
		x = int(str1[i]) - '0'
		y = y*10 + x
	}
	fmt.Println(y)
	fmt.Println(reflect.TypeOf(y))

}
